﻿using BLL;
using System;
using Utility.Helper;

namespace Thksoft.Funds
{
    public partial class GetBankListByGS : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["TYPE"] == "API")
                {
                    var requstData = AjaxResult.GetPostData(this.Context);
                    var acccountId = requstData["ACCOUNT_NUMBER"].NewToObject<string>();
                    var cmyId = requstData["COMPANY_ID"].NewToObject<int>();
                    var beginDate = requstData["BEGIN_DATE"].NewToObject<DateTime>();
                    var overDate = requstData["OVER_DATE"].NewToObject<DateTime>();
                    var bll = new YX_BANK_LISTBLL();
                    bll.GetBankBin(cmyId, acccountId, beginDate, overDate);
                    AjaxResult.Success(this.Context);
                    return;
                }
            }
        }
    }
}